<?php
/**
 * @package qBase
 * @subpackage web
 */

/**
 * QControlPlaceholder control holds the place for a control that has
 * position absolute and need to be placed over this control
 * 
 * @package qBase
 * @subpackage web
 */
class QControlPlaceholder extends QWebControl 
{
	/**
	 * The control to set in his place
	 *
	 * @var QWebControl
	 */
	private $controlToPlace = null;
	
	public function setControlToPlace(QWebControl $controlToPlace)
	{
		$this->setJsParam("controlToPlace", $controlToPlace->getFullId(), true);
		$this->controlToPlace = $controlToPlace;
	}
	
	public function getControlToPlace()
	{
		return $this->controlToPlace;
	}
	
	public function unsetControlToPlace()
	{
		$this->unsetJsParam("controlToPlace");
		unset($this->controlToPlace);
	}
}


?>